#include <opencv2/opencv.hpp>
#include <unistd.h>
#include <sys/socket.h>
#include <mutex>
using namespace std;
using namespace cv;

extern queue<pair<int, Mat>> queueInput_server;  // input queue
extern mutex mtxQueueInput_server;               // mutex of input queue

extern bool bReading;      // flag of input
extern int idxInputImage;  // image index of input video

// 视频属性类
struct video_property{
    int Frame_cnt;
    int Fps;
    int Video_width;
    int Video_height;
    double Video_fourcc;
};

extern const char* SAVE_PATH;
void videoTransServer(int cpuid, int sock_tcp);
